package com.graduation.smartparkingplatform.Dao;

import com.graduation.smartparkingplatform.Pojo.Private;
import com.graduation.smartparkingplatform.Pojo.Space;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PrivateMapper {

  public List<Private> getPrivateList();

  public List<Space> getPrivateLists(@Param("privateId") Integer privateId);

  public List<Private> searchPrivate(@Param("privateName") String privateName);

  public Boolean addPrivate(Private privatee);

  public Boolean changeInfo(Private privatee);

  public Boolean changePrivateStatus(
      @Param("privateId") Integer privateId, @Param("status") Boolean status);

  public Boolean deletePrivate(@Param("privateId") Integer privateId);

  public Boolean bindingSpace(
      @Param("privateId") Integer privateId, @Param("spaceId") Integer spaceId);

  public Boolean changeSpacePrivate(@Param("spaceId") Integer spaceId);
}
